package temp.lho.lws.shiro.config;

import java.util.LinkedHashMap;

/**
 * @author liuws
 * @create 2020-07-04 0:35
 */
public class CustomFilterChainMap {

    public static LinkedHashMap<String, String> getFilterChainMap() {
        LinkedHashMap<String, String> map = new LinkedHashMap<>();
        map.put("/static/**", "anon");
        map.put("/user/login", "anon");
        map.put("/user/initCaptcha", "anon");
        map.put("/user/logout", "logout");
        map.put("/admin/**", "roles[admin]");
        map.put("/sys/**", "roles[sys]");
        map.put("/**", "authc");

        return map;
    }

}
